' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' Q%          N a m e :   W a y P o i n t e r _ 0 4 . t x t                             D a t e :   0 4   M a y   2 0 2 5   Q%
 
 ' Q%      A u t h o r :   L e o n a r d o                                                                                   Q%
 
 ' Q%        S c o p e :   M a n a g i n g   t h e   W a y P o i n t e r                                                     Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%  C o n f i g u r a t i o n :     4   k n o b                                                                           Q%
 
 ' Q%                                1 0   b u t t o n s                                                                     Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%  H a r d w a r e :   M a s t e r                                                                                       Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%I S O       C u l t u r e     G e n d e r       A g e           N a m e                                                 Q%
 
 ' _% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' Q%E N G       E N - U S         M a l e           A d u l t       M i c r o s o f t   D a v i d   D e s k t o p           Q%
 
 ' Q%E N G       E N - U S         F e m a l e       A d u l t       M i c r o s o f t   Z i r a   D e s k t o p             Q%
 
 ' Q%I T A       I T - I T         F e m a l e       A d u l t       M i c r o s o f t   E l s a   D e s k t o p             Q%
 
 ' Q%J P N       J A - J P         F e m a l e       A d u l t       M i c r o s o f t   H a r u k a   D e s k t o p         Q%
 
 ' Q%Z H O       Z H - C N         F e m a l e       A d u l t       M i c r o s o f t   H u i h u i   D e s k t o p         Q%
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 O p t i o n   S p e e d   9 
 
 ' L o a d   i m a g e s \ W a y P o i n t e r . j p g 
 
 ' B e e p   " 2 5 0 0   2 0 ,   1 5 0 0   1 0 0 " 
 
 ' T T S   S e l e c t V o i c e   " E N G " 
 
 ' T T S   S e l e c t V o i c e   " Z H O " 
 
 ' s 1   =   T T S v o i c e s 
 
 ' T T S   S e t V o l u m e   1 0 0             ' 1 0 0 
 
 ' T T S   S e t S p e e d   0 
 
 ' T T S   S e l e c t V o i c e   5       ' 3 
 
 
 
 T T S   S e t V o l u m e   0 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S L O T   T E X T   f o r   C O M M A N D S   a n d   R E S P O N S E S               Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 ' V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s T o M o t o r s             =   5 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s T o C o b o t               =   5 1 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ R e s p o n s e s F r o m C o b o t         =   5 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ E x t e r n a l C o m m a n d s             =   5 3 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ W o r d R e c o g n i z e d                 =   5 5 
 
 
 
 V a r i a b l e   S t r i n g   W a y P o i n t S t a t u s   =   9 0 
 
 S l o t T e x t ( W a y P o i n t S t a t u s )   =   " O F F " 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %      %%%%  %%%%%
 
 '   Q%  S L O T   I N I T I A L I Z A T I O N S                                               Q%  %%%%  %      %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%  %%%%      %
 
 ' V a r i a b l e   N u m e r i c   S l o t _ P e d a l                             =     1 0 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ S e t W a y P o i n t                 =     8 1 4 
 
 
 
 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ S a f e T o r q u e                     =   9 9 8 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ M a s t e r S t a t u s                 =   8 7 8 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ S i g n a l S c o p e                   =   8 8 3 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 1                         =   8 7 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 2                         =   8 7 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 3                         =   8 7 3 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 4                         =   8 7 4 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ F i r s t F i v e B u t t o n           =   8 7 6 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e c o n d F i v e B u t t o n         =   8 7 7 
 
 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ M o t o r s F P S                       =     5 6 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 1 _ D e s t                           =   1 5 8 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 2 _ D e s t                           =   2 5 8 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 3 _ D e s t                           =   3 5 8 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 4 _ D e s t                           =   4 5 8 
 
 
 
 V a r i a b l e   N u m e r i c   S T e x t _ W a y P o i n t S t a t u s   =   9 0 
 
 ' S l o t T e x t ( S T e x t _ W a y P o i n t S t a t u s )   =   " O F F "         ' T h e r e m i n o   W a y P o i n t   o f f l i n e 
 
 
 
 
 
 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   M i c r o V i d e o 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ T a k e I m a g e                       =   8 1 5 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ S t a r t S t o p V i d e o             =   8 1 6 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ S a v e V i d e o                       =   8 1 7 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 1 _ M i n                             =       0 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 1 _ M a x                             =   2 7 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 2 _ M i n                             =       0 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 2 _ M a x                             =   2 7 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 3 _ M i n     	 	 	     =     0 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 3 _ M a x     	 	 	     =   2 7 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 4 _ M i n     	 	 	     =       0 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 4 _ M a x     	 	 	     =   3 5 5 
 
 
 
 V a r i a b l e   S t r i n g   C u r r e n t L a n g u a g e                       =   " E n g l i s h "   ' o r   " C h i n e s e " 
 
 
 
 ' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%d%P%P%P%P%P%P%P%P%P%P%d%P%P%P%P%P%P%P%P%W%
 
 ' Q%    t y p e   5                                               %    m e d i u m     %    p r e s s   Q%
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 Y _ U n p               =   8 5 8 
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 Y _ B e g               =   6 0 5 
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 Y _ E x e               =   4 0 2 
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 Y _ U p p               =   2 2 6 
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 Y _ D o w               =     6 8 
 
 ' ' V a r i a b l e   N u m e r i c   A K T _ 5 Y _ I n s                 =       0   '   n o t   u s e d 
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 C _ U n p               =   8 6 1 
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 C _ R e d               =   6 0 7 
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 C _ G r e               =   4 0 2 
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 C _ B l k               =   2 2 6 
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 C _ Y e l               =     6 8 
 
 ' ' V a r i a b l e   N u m e r i c   A K T _ 5 C _ B l u               =       0   '   n o t   u s e d 
 
 
 
 
 
 ' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%d%P%P%P%P%P%P%P%P%P%P%d%P%P%P%P%P%P%P%P%W%
 
 ' Q%    t y p e   5   u n d e r s c o r e d   B l a c k           %    m e d i u m     %    p r e s s   Q%
 
 V a r i a b l e   N u m e r i c   A K T _ 5 Y _ U n p                 =   6 7 0           ' 
 
 V a r i a b l e   N u m e r i c   A K T _ 5 Y _ B e g                 =   2 5 2           '     3 4 2 
 
 V a r i a b l e   N u m e r i c   A K T _ 5 Y _ E x e                 =   1 2 3           '     1 6 1 
 
 V a r i a b l e   N u m e r i c   A K T _ 5 Y _ U p p                 =     5 7           '       8 5 
 
 V a r i a b l e   N u m e r i c   A K T _ 5 Y _ D o w                 =     1 5           '       2 9 
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 Y _ I n s                 =       0           '         0 
 
 V a r i a b l e   N u m e r i c   A K T _ 5 C _ U n p                 =   6 7 0 
 
 V a r i a b l e   N u m e r i c   A K T _ 5 C _ R e d                 =   2 5 2           '     3 4 1 
 
 V a r i a b l e   N u m e r i c   A K T _ 5 C _ G r e                 =   1 2 3           '     1 6 1 
 
 V a r i a b l e   N u m e r i c   A K T _ 5 C _ B l k                 =     5 7           '       8 5 
 
 V a r i a b l e   N u m e r i c   A K T _ 5 C _ Y e l                 =     1 5           '       3 0 
 
 ' V a r i a b l e   N u m e r i c   A K T _ 5 C _ B l u                 =       0         '         0 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%%%  %%%%%  %%%%  %%  %  %%%%
 
 '   Q%  B U T T O N S                                                       Q%  %%%%  %    %      %          %      %    %  %  %%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%      %          %      %%%%  %    %  %%%%
 
 
 
 B u t t o n   1   L a b e l   B u t t o n s M e a n i n g 
 
 B u t t o n   B u t t o n s M e a n i n g   T e x t   " B u t t o n s   M e a n i n g " 
 
 B u t t o n   B u t t o n s M e a n i n g   C o l o r   P e a c h P u f f 
 
 
 
 B u t t o n   2   L a b e l   K n o b C o n t r o l l e r 
 
 B u t t o n   K n o b C o n t r o l l e r     T e x t   " C o n n e c t   K n o b   C o l t r o l l e r " 
 
 B u t t o n   K n o b C o n t r o l l e r     C o l o r   L i g h t B l u e 
 
 ' 
 
 ' B u t t o n   3   L a b e l   S a f e 
 
 ' B u t t o n   S a f e   T e x t   " S a f e " 
 
 ' B u t t o n   S a f e   C o l o r   G r e e n 9 
 
 ' 
 
 ' B u t t o n   4   L a b e l   S a y 
 
 ' B u t t o n   S a y   T e x t   " S a y " 
 
 ' B u t t o n   S a y   C o l o r   N a v a j o W h i t e 
 
 ' 
 
 B u t t o n   4   L a b e l   W a y P o i n t 
 
 B u t t o n   W a y P o i n t   T e x t   " W a y P o i n t   O F F " 
 
 B u t t o n   W a y P o i n t   C o l o r   B l a c k 
 
 
 
 B u t t o n   5   L a b e l   L a n g u a g e 
 
 B u t t o n   L a n g u a g e   T e x t   " E n g l i s h " 
 
 B u t t o n   L a n g u a g e   C o l o r   D o d g e r B l u e 
 
 
 
 B u t t o n   6   L a b e l   S c o p e s A c t i v e 
 
 B u t t o n   S c o p e s A c t i v e   T e x t   " S c o p e s A c t i v e " 
 
 B u t t o n   S c o p e s A c t i v e   C o l o r   L i g h t S t e e l B l u e 
 
 
 
 B u t t o n   7   L a b e l   R e p e a t O n O f f 
 
 B u t t o n   R e p e a t O n O f f   T e x t   " R e p e a t   O F F " 
 
 B u t t o n   R e p e a t O n O f f   C o l o r   L i g h t S t e e l B l u e 
 
 
 
 B u t t o n   8   L a b e l   C o l l a b O n O f f 
 
 B u t t o n   C o l l a b O n O f f   T e x t   " C o l l a b   O F F " 
 
 B u t t o n   C o l l a b O n O f f   C o l o r   L i g h t S t e e l B l u e 
 
 
 
 ' ' B u t t o n   0 9   L a b e l   V o i c e I n p u t 
 
 ' ' B u t t o n   V o i c e I n p u t   T e x t   " V o i c e   I n p u t " 
 
 ' ' B u t t o n   V o i c e I n p u t   C o l o r   S k y B l u e 
 
 ' 
 
 B u t t o n   1 0   L a b e l   V o i c e O u t p u t O n O f f 
 
 B u t t o n   V o i c e O u t p u t O n O f f   T e x t   " V O I C E " 
 
 B u t t o n   V o i c e O u t p u t O n O f f   C o l o r   G r e e n 
 
 
 
 ' D i s a b l e A l l B u t t o n s 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O A D   A P P S                                                                     Q%  %      %    %  %%%%  %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %    %  %%%%
 
 ' S a f e 
 
 ' B u t t o n s M e a n i n g S t a t u s   =   " S h o w   O F F " 
 
 
 
 L o a d   T h e r e m i n o _ H A L . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ M a s t e r _ E n c . e x e 
 
 L o a d   T h e r e m i n o _ S i g n a l S c o p e . e x e 
 
 ' L o a d   T h e r e m i n o _ S l o t V i e w e r _ S T R . e x e 
 
 ' L o a d   T h e r e m i n o _ S l o t V i e w e r _ T S I O . e x e 
 
 
 
 ' W a i t A p p l i c a t i o n s S t a r t e d 
 
 
 
 ' L o a d   " . . \ F i l e s \ A n a l o g _ B u t t o n _ F u n c t i o n s . t x t " 
 
 L o a d   H i d e 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%      %%%%    %%%%%    %%%%%    %%%%%    %%%%%
 
 '   Q%    E X E C U T I O N   S T A R T   F R O M   H E R E                                   Q%      %%%%        %        %%%%%    %%%%%        %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%      %%%%        %        %      %    %    %%        %
 
 
 
 R e s e t E n c o d e r s 
 
 S l o t ( S l o t _ S i g n a l S c o p e )   =   1 0 0 0 
 
 C o n t r o l s   O p e n T e x t B o x 
 
 C o n t r o l s   C l e a r T e x t B o x 
 
 
 
 ' V o i c e C o m m a n d s S t a t u s   =   " a c t i v e " 
 
 ' V o i c e C o m m a n d s S t a t u s   =   " " 
 
 ' I n t e r p r e t a t e V o i c e C o m m a n d s 
 
 
 
 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e t T o r q u e M i n   1 0 0 " ) 
 
 
 
 D i s a b l e C o l l a b o r a t i v e 
 
 ' S t o p V o i c e 
 
 ' S t a r t V o i c e 
 
 C u r r e n t L a n g u a g e   =   " E n g l i s h " 
 
 ' C u r r e n t L a n g u a g e   =   " C h i n e s e " 
 
 T T S   S p e a k   " T h e r e m i n o   A u t o m a t i o n   W a y P o i n t   r u n " 
 
 
 
 ' E n a b l e A l l B u t t o n 
 
 L o o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%%  %%%%  %%%%
 
 '   Q%  S T O P   E V E N T   ( w h e n   p r e s s i n g   s t o p   b u t t o n )           Q%  %%%%      %      %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%      %      %%%%  %
 
 L a b e l   E v e n t S t o p 
 
 	 ' S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 E n d 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O O P                                                                               Q%  %      %    %  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %%%%  %
 
 V a r i a b l e   S t r i n g   L C M 
 
 L a b e l   L o o p 
 
 	 
 
 	 ' S t a t u s M a s t e r 
 
 	 I f   S l o t T e x t ( S T e x t _ W a y P o i n t S t a t u s )   < >   " " 
 
 	 	 L C M   =   S l o t T e x t ( S T e x t _ W a y P o i n t S t a t u s ) 
 
 	 	 P r i n t   L C M 
 
 	 	 I f   L C M   =   " O F F " 
 
 	 	 	 B u t t o n   W a y P o i n t   T e x t   " W a y P o i n t   O F F " 
 
 	 	 	 B u t t o n   W a y P o i n t   C o l o r   B l a c k 
 
 	 	 E l s e 
 
 	 	 	 B u t t o n   W a y P o i n t   T e x t   " W a y P o i n t   O N " 
 
 	 	 	 B u t t o n   W a y P o i n t   C o l o r   F l a s h i n g 9   G r e e n 9   G r e e n Y e l l o w 
 
 	 	 E n d I f 
 
 	 	 S l o t T e x t ( S T e x t _ W a y P o i n t S t a t u s )   =   " " 
 
 	 E n d I f 
 
 	 I f   L C M   =   " O N " 
 
 	 	 ' E n c o d e r s 
 
 	 	 ' F i r s t F i v e B u t t o n s 
 
 	 E n d I f 
 
 G o t o   L o o p 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     E N A B L E   -   D I S A B L E   W a y   P o i n t   A u t o m a t i o n   p r o g r a m 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   W a y P o i n t 
 
 	 I f 	 S l o t T e x t ( S T e x t _ W a y P o i n t S t a t u s )   =   " O F F " 
 
 	 	 B u t t o n   W a y P o i n t   T e x t   " W a y P o i n t   O N " 
 
 	 	 B u t t o n   W a y P o i n t   C o l o r   F l a s h i n g 8   G r e e n 9   G r e e n Y e l l o w 
 
 	 	 S l o t T e x t ( S T e x t _ W a y P o i n t S t a t u s )   =   " O N " 
 
 	 E l s e 
 
 	 	 B u t t o n   W a y P o i n t   T e x t   " W a y P o i n t   O F F " 
 
 	 	 B u t t o n   W a y P o i n t   C o l o r   B l a c k 
 
 	 	 S l o t T e x t ( S T e x t _ W a y P o i n t S t a t u s )   =   " O F F " 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  M A S T E R   S T A T U S   Q U E R Y   Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   S t a t u s M a s t e r 
 
 	 V a r i a b l e   S t r i n g   M a s t e r 
 
 	 I f   S l o t ( S l o t _ M a s t e r S t a t u s )   < >   1 0 0 0 
 
 	 	 M a s t e r   =   " O F F " 
 
 	 	 ' P r i n t   " M A S T E R   O F F     " 
 
 	 E l s e 
 
 	 	 M a s t e r   =   " O N " 
 
 	 	 ' P r i n t   " M A S T E R   O N     " 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E N A B L E / D I S A B L E   B U T T O N S                                           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E n a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   3 2 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   3 2 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 ' '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' '   Q%    W A I T   C O B O T   R E A D Y                                                     Q%
 
 ' '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 ' L a b e l   W a i t C o b o t R e a d y 
 
 ' 	 V a r i a b l e   N u m e r i c   W C R 1 
 
 ' 	 F o r   W C R 1   =   1   T o   I n f i n i t y 
 
 ' 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 ' 	 	 I f   S l o t T e x t ( S l o t _ R e s p o n s e s F r o m C o b o t )   =   " R e a d y " 
 
 ' 	 	 	 E x i t 
 
 ' 	 	 E n d I f 
 
 ' 	 N e x t 
 
 ' R e t u r n 
 
 
 
 ' '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' '   Q%    W A I T   A P P S   S T A R T E D                                                   Q%
 
 ' '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 ' L a b e l   W a i t A p p l i c a t i o n s S t a r t e d 
 
 ' 	 S l o t ( S l o t _ M o t o r s F P S )   =   0 
 
 ' 	 W a i t   S l o t ( S l o t _ M o t o r s F P S )   >   1 0 
 
 ' 	 W a i t   S e c o n d s   0 . 1 
 
 ' R e t u r n 
 
 
 
 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     S E N D   C O M M A N D   ( d e f a u l t   t i m e o u t   =   0 . 5   S e c ) 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   S e n d C o m m a n d 	 	 	 ' ( D e s t i n a t i o n   S l o t ) ( C o m m a n d   S t r i n g ) 
 
 	 V a r i a b l e   N u m e r i c   S C 1 
 
 	 V a r i a b l e   S t r i n g     S C 2 
 
 	 V a r i a b l e   N u m e r i c   S C 3   =   0 . 7   ' < - -   T h e   t i m e o u t   i n   s e c o n d s   w a s   0 . 5 
 
 	 V a r i a b l e   N u m e r i c   S C 4 
 
 	 S l o t T e x t   S C 1   =   S C 2 
 
 	 F o r   S C 4   =   0 . 1   T o   S C 3   S t e p   0 . 1 
 
 	 	 I f   S l o t T e x t ( S C 1 )   =   " " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 ' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' Q%C O M M A N D S   T O   C O B O T Q%
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 '   %%%%  %%%%  %%  %%  %%  %%      %%%%%  %%%%      %%%%  %%%%  %%%    %%%%  %%%%%
 
 '   %        %    %  %  %  %  %  %  %          %      %    %      %        %    %  %%%%  %    %      %
 
 '   %%%%  %%%%  %      %  %      %  %      %      %%%%      %%%%  %%%%  %%%%  %%%%      %
 
 
 
 L a b e l   E x e c C o b o t 
 
 	 ' S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " D i s a b l e R e p e a t " ) 
 
 	 ' S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " E n a b l e R e p e a t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t o p E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   A r r o w U p C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " A r r o w U p " ) 
 
 R e t u r n 
 
 
 
 L a b e l   A r r o w D o w n C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " A r r o w D o w n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   E x e c u t e C o b o t F r o m S e l e c t e d L i n e 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   C o r r e c t S e l e c t e d P o s i t i o n 
 
 	 I f   M a s t e r   =   " O F F " 
 
 	 	 R e t u r n 
 
 	 E n d I f 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " C o r r e c t S e l e c t e d P o s i t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   D e l e t e S e l e c t e d L i n e 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " D e l e t e S e l e c t e d L i n e " ) 
 
 R e t u r n 
 
 
 
 L a b e l   A d d N e w P o s i t i o n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " A d d N e w P o s i t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   E n a b l e R e p e a t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " E n a b l e R e p e a t " ) 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e R e p e a t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " D i s a b l e R e p e a t " ) 
 
 R e t u r n 
 
 
 
 L a b e l   E n a b l e C o l l a b o r a t i v e 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " E n a b l e C o l l a b o r a t i v e " ) 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e C o l l a b o r a t i v e 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " D i s a b l e C o l l a b o r a t i v e " ) 
 
 R e t u r n 
 
 
 
 L a b e l   S e t u p C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e t T o r q u e M i n   3 3 1 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e t T o r q u e M a x   7 0 1 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e t A c c e l e r a t i o n   2 2 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e t S p e e d   1 1 0 0 " ) 
 
 R e t u r n 
 
 
 
 
 
 ' '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%
 
 ' '   Q%    S   U   B   R   O   U   T   I   N   E       A   R   E   A                       Q%  %%%%  %    %  %%%%
 
 ' '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%
 
 ' L a b e l   E n a b l e H o m e B u t t o n s 
 
 ' 	 F o r   v 1   =   1 7   T o   2 2 
 
 ' 	 	 B u t t o n   v 1   E n a b l e d 
 
 ' 	 N e x t 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   D i s a b l e H o m e B u t t o n s 
 
 ' 	 F o r   v 1   =   1 7   T o   2 2 
 
 ' 	 	 B u t t o n   v 1   D i s a b l e d 
 
 ' 	 N e x t 
 
 ' R e t u r n 
 
 
 
 ' L a b e l   S h o w M o t o r F P S 
 
 ' 	 V a r i a b l e   S t r i n g   M o t o r s A r e E n a b l e d 
 
 ' 	 V a r i a b l e   N u m e r i c   S M F 1   =   S l o t ( S l o t _ M o t o r s F P S ) 
 
 ' 	 I f   S M F 1   >   3 0 
 
 ' 	 	 I f   M o t o r s A r e E n a b l e d   < >   " T R U E " 
 
 ' 	 	 	 M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 ' 	 	 	 B u t t o n   M o t o r F P S   C o l o r   G r e e n Y e l l o w 
 
 ' 	 	 E n d I f 
 
 ' 	 	 B u t t o n   M o t o r F P S   T e x t   " F P S   "   +   S t r ( S M F 1 ) 
 
 ' 	 E l s e 
 
 ' 	 	 I f   M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 ' 	 	 	 M o t o r s A r e E n a b l e d   =   " F A L S E " 
 
 ' 	 	 	 B u t t o n   M o t o r F P S   C o l o r   F l a s h i n g 7   Y e l l o w   D a r k O r a n g e 
 
 ' 	 	 	 B u t t o n   M o t o r F P S   T e x t   " N O   M O T O R S " 
 
 ' 	 	 E n d I f 
 
 ' 	 E n d I f 
 
 ' R e t u r n 
 
 
 
 ' L a b e l   M o t o r F P S 
 
 ' 	 I f   M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 ' 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( " D i s a b l e C o n n e c t i o n " ) 
 
 ' 	 E l s e 
 
 ' 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( " E n a b l e C o n n e c t i o n " ) 
 
 ' 	 E n d I f 
 
 ' R e t u r n 
 
 
 
 L a b e l   S c o p e s A c t i v e 
 
 	 I f   S l o t ( S l o t _ S i g n a l S c o p e )   <   1 0 0 0 
 
 	 	 B u t t o n   S c o p e s A c t i v e   T e x t   " S c o p e s   O N " 
 
 	 	 B u t t o n   S c o p e s A c t i v e   C o l o r   F l a s h i n g 8   O r a n g e R e d   M o c c a s i n 
 
 	 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   1 0 0 0 
 
 	 E l s e 
 
 	 	 B u t t o n   S c o p e s A c t i v e   T e x t   " S c o p e s   O F F " 
 
 	 	 B u t t o n   S c o p e s A c t i v e   C o l o r   B u r l y W o o d 
 
 	 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %  %%%%  %%%%      %%%%  %    %  %%%%%
 
 '   Q%  V o i c e   O U T   Q%    %  %    %    %  %  %        %%%        %    %  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%]%      %      %%%%  %  %%%%  %%%%      %%%%  %%%%      %
 
 V a r i a b l e   S t r i n g   V o i c e O u t p u t S t a t u s 
 
 L a b e l   S t a r t V o i c e 
 
 	 V o i c e O u t p u t S t a t u s   =   " " 
 
 	 V o i c e O u t p u t O n O f f 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p V o i c e 
 
 	 V o i c e O u t p u t S t a t u s   =   " a c t i v e " 
 
 	 V o i c e O u t p u t O n O f f 
 
 R e t u r n 
 
 
 
 L a b e l   V o i c e O u t p u t O n O f f 
 
 	 I f   V o i c e O u t p u t S t a t u s   =   " a c t i v e " 
 
 	 	 V o i c e O u t p u t S t a t u s   =   " " 
 
 	 	 B u t t o n   V o i c e O u t p u t O n O f f   T e x t   " V o i c e   o u t p u t   O F F " 
 
 	 	 B u t t o n   V o i c e O u t p u t O n O f f   C o l o r   D a r k S l a t e G r a y 
 
 	 	 T T S   S p e a k W a i t   V o i c e   O F F 
 
 	 	 T T S   S e t V o l u m e   0 
 
 	 E l s e 
 
 	 	 T T S   S e t V o l u m e   1 0 0 
 
 	 	 T T S   S p e a k   V o i c e   O N 
 
 	 	 V o i c e O u t p u t S t a t u s   =   " a c t i v e " 
 
 	 	 B u t t o n   V o i c e O u t p u t O n O f f   T e x t   " V o i c e   o u t p u t   O N " 
 
 	 	 B u t t o n   V o i c e O u t p u t O n O f f   C o l o r   L i m e 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   L a n g u a g e 
 
 	 I f   C u r r e n t L a n g u a g e   =   " E n g l i s h " 
 
 	 	 C u r r e n t L a n g u a g e   =   " C h i n e s e " 
 
 	 	 B u t t o n   L a n g u a g e   T e x t   " C h i n e s e " 
 
 	 	 B u t t o n   L a n g u a g e   C o l o r   F l a s h i n g     F i r e b r i c k     T h i s t l e 
 
 	 	 T T S   S e l e c t V o i c e   " Z H O " 
 
 	 	 T T S   S p e a k   -Ne 
 
 	 E l s e 
 
 	 	 C u r r e n t L a n g u a g e   =   " C h i n e s e " 
 
 	 	 C u r r e n t L a n g u a g e   =   " E n g l i s h " 
 
 	 	 B u t t o n   L a n g u a g e   T e x t   " E n g l i s h " 
 
 	 	 B u t t o n   L a n g u a g e   C o l o r   D o d g e r B l u e 
 
 	 	 T T S   S e l e c t V o i c e   " E N G " 
 
 	 	 T T S   S p e a k   E n g l i s h   L a n g u a g e 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   C l e a r C o m m a n d 
 
 	 S l o t T e x t ( S l o t _ E x t e r n a l C o m m a n d s )   =   " " 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = =   N I C E   B O X   = = = = = = = = = = = = = = 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%      %%%        %%%    %    %  %%%%%  %%%%%  %%%%  %%  %  %%%%
 
 '   Q%  F I R S T   F I V E   P U S H   B U T T O N S   Q%  %%%        %%%        %%%%  %    %      %          %      %    %  %  %%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %    %      %%%        %%%%  %%%%      %          %      %%%%  %    %  %%%%
 
 ' f o r   r i g h t   v a l u e   o f   a n a l o g   k e y b o a r d   r e a d   f i l e :   A n a l o g _ k e y _ t a b l e . t x t   i n   / P r o g r a m s 
 
 
 
 V a r i a b l e   S t r i n g   P r e s s e d B u t t o n 
 
 L a b e l   F i r s t F i v e B u t t o n s 
 
 	 V a r i a b l e   N u m e r i c   F F B 0 
 
 	 V a r i a b l e   N u m e r i c   F F B 1 
 
 	 V a r i a b l e   N u m e r i c   F F B 2 
 
 	 ' '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c h e c k   t h e   p r e s e n c e   o f   t h e   M a s t e r 
 
 	 I f   S l o t ( S l o t _ M a s t e r S t a t u s )   < >   1 0 0 0 
 
 	 	 R e t u r n 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e a d   t h e   v a l u e   t w o   t i m e s 
 
 	 F F B 1   =   S l o t ( S l o t _ F i r s t F i v e B u t t o n ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   I f   s i m i l a r   v a l u e s 
 
 	 I f   A b s ( F F B 2   -   F F B 1 )   <   1 0 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - -   I f   a r m e d 
 
 	 	 I f   F F B 0   =   0 
 
 	 	 	 F F B 0   =   1 
 
 	 	 	 S e l e c t   T r u e 
 
 	 	 	 	 C a s e   F F B 1   >   A K T _ 5 Y _ U n p 
 
 	 	 	 	 	 ' P r i n t   " " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " " 
 
 	 	 	 	 C a s e   F F B 1   >   A K T _ 5 Y _ B e g 
 
 	 	 	 	 	 ' P r i n t   "   B e g i n   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " B e g i n " 
 
 	 	 	 	 	 E x e c C o b o t 
 
 	 	 	 	 	 S t a r t S c o p e 
 
 	 	 	 	 C a s e   F F B 1   >   A K T _ 5 Y _ E x e 
 
 	 	 	 	 	 ' P r i n t   "   E x e c   f r o m   l i n e   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " E x e c   f r o m   l i n e " 
 
 	 	 	 	 	 E x e c u t e C o b o t F r o m S e l e c t e d L i n e 
 
 	 	 	 	 	 S t a r t S c o p e 
 
 	 	 	 	 C a s e   F F B 1   >   A K T _ 5 Y _ U p p 
 
 	 	 	 	 	 ' P r i n t   "   A r r o w   u p   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " U p " 
 
 	 	 	 	 	 A r r o w U p C o b o t 
 
 	 	 	 	 	 S t a r t S c o p e 
 
 	 	 	 	 C a s e   F F B 1   >   A K T _ 5 Y _ D o w 
 
 	 	 	 	 	 ' P r i n t   "   A r r o w   d o w n   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " D o w n " 
 
 	 	 	 	 	 A r r o w D o w n C o b o t 
 
 	 	 	 	 	 S t a r t S c o p e 
 
 	 	 	 	 C a s e E l s e 
 
 	 	 	 	 	 ' P r i n t   "   A r r o w   i n s i d e   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " I n s i d e " 
 
 	 	 	 	 	 S t o p C o b o t 
 
 	 	 	 	 	 ' C o l l a b O n O f f 
 
 	 	 	 	 	 C o r r e c t S e l e c t e d P o s i t i o n 
 
 	 	 	 E n d S e l e c t 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 	 F F B 2   =   F F B 1 
 
         '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e a r m   b u t t o n s 
 
 	 I f   F F B 1   >   7 0 0 
 
 	 	 F F B 0   =   0 
 
 	 E n d I f 
 
 	 S e c o n d F i v e B u t t o n s 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = =   N I C E   B O X   C O L O R E D   B U T T O N S   = = = = = = = = = = = = = = 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%        %%%        %%%    %    %  %%%%%  %%%%%  %%%%  %%  %  %%%%
 
 '   Q%  S E C O N D   F I V E   P U S H   B U T T O N S   Q%  %%%%        %%%        %%%%  %    %      %          %      %    %  %  %%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %%%        %%%%  %%%%      %          %      %%%%  %    %  %%%%
 
 ' f o r   r i g h t   v a l u e o f     a n a l o g   k e y b o a r d   r e a d   f i l e :   A n a l o g _ k e y _ t a b l e . t x t 
 
 
 
 
 
 L a b e l   S e c o n d F i v e B u t t o n s 
 
 	 V a r i a b l e   N u m e r i c   S F B 0 
 
 	 V a r i a b l e   N u m e r i c   S F B 1 
 
 	 V a r i a b l e   N u m e r i c   S F B 2 
 
 	 ' '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c h e c k   t h e   p r e s e n c e   o f   t h e   M a s t e r 
 
 	 I f   S l o t ( S l o t _ M a s t e r S t a t u s )   < >   1 0 0 0 
 
 	 	 R e t u r n 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e a d   t h e   v a l u e   t w o   t i m e s 
 
 	 S F B 1   =   S l o t ( S l o t _ S e c o n d F i v e B u t t o n ) 
 
 	 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   I f   s i m i l a r   v a l u e s 
 
 	 I f   A b s ( S F B 2   -   S F B 1 )   <   1 0 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - -   I f   a r m e d 
 
 	 	 I f   S F B 0   =   0 
 
 	 	 	 S F B 0   =   1 
 
 	 	 	 S e l e c t   T r u e 
 
 	 	 	 	 C a s e   S F B 1   >   A K T _ 5 C _ U n p 
 
 	 	 	 	 	 ' P r i n t   " " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " " 
 
 	 	 	 	 	 E n c o d e r S p e e d   =   " " 
 
 	 	 	 	 C a s e   S F B 1   >   A K T _ 5 C _ R e d 
 
 	 	 	 	 	 ' P r i n t   "   r e d   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " r e d " 
 
 	 	 	 	 	 E n c o d e r S p e e d   =   " h i g h " 
 
 	 	 	 	 C a s e   S F B 1   >   A K T _ 5 C _ G r e 
 
 	 	 	 	 	 ' P r i n t   "   g r e e n   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " g r e e n " 
 
 	 	 	 	 	 E n c o d e r S p e e d   =   " l o w " 
 
 	 	 	 	 C a s e   S F B 1   >   A K T _ 5 C _ B l k 
 
 	 	 	 	 	 ' P r i n t   "   b l a c k   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " b l a c k " 
 
 	 	 	 	 	 D e l e t e S e l e c t e d L i n e 
 
 	 	 	 	 	 T T S   S p e a k   D e l e t e   l i n e 
 
 	 	 	 	 C a s e   S F B 1   >   A K T _ 5 C _ Y e l 
 
 	 	 	 	 	 ' P r i n t   "   y e l l o w   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " y e l l o w " 
 
 	 	 	 	 	 A d d N e w P o s i t i o n 
 
 	 	 	 	 C a s e E l s e 
 
 	 	 	 	 	 ' P r i n t   "   b l u e   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n   =   " b l u e " 
 
 	 	 	 	 	 R e p e a t O n O f f 
 
 	 	 	 E n d S e l e c t 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 	 S F B 2   =   S F B 1 
 
         '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e a r m   b u t t o n s 
 
 	 I f   S F B 1   >   7 0 0 
 
 	 	 S F B 0   =   0 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l     K n o b C o n t r o l l e r 
 
 	 S l o t ( 0 )   =   R e c o g n i z e 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%  %  %%%%  %%%%  %%%%  %%%%  %%%%  %%%%
 
 '   Q%  E N C O D E R S   U S B   o r     W i - F i   Q%  %%%    %  %%  %        %    %  %    %  %%%    %%%%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %  %%%%  %%%%  %%%%  %%%%  %  %%  %%%%
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 1 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 1   =   S l o t ( S l o t _ E n c o d e r 1 ) 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 1 
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 2 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 2   =   S l o t ( S l o t _ E n c o d e r 2 ) 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 2 
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 3 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 3   =   S l o t ( S l o t _ E n c o d e r 3 ) 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 3 
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 4 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 4   =   S l o t ( S l o t _ E n c o d e r 4 ) 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 4 
 
 
 
 L a b e l   R e c o g n i z e E n c o d e r 
 
 	 S l o t ( 0 )   =   R e c o g n i z e 
 
 R e t u r n 
 
 
 
 V a r i a b l e   S t r i n g   " E n c o d e r S p e e d "   =   " " 
 
 L a b e l   E n c o d e r s 
 
 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   E n c o d e r   B A S E 
 
 	 E n c o d e r S t e p s 1   =   S l o t ( S l o t _ E n c o d e r 1 )   /   4 
 
 	 D i f f e r e n c e 1   =   E n c o d e r S t e p s 1   -   O l d E n c o d e r S t e p s 1 
 
 	 O l d E n c o d e r S t e p s 1   =   E n c o d e r S t e p s 1 
 
 	 I f   D i f f e r e n c e 1   >   3 2 0 0 0   /   4 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   -   6 5 5 3 6   /   4 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 1   <   - 3 2 0 0 0   /   4 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   +   6 5 5 3 6   /   4 
 
 	 E n d I f 
 
 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   *   1               ' d e f a u l t   s p e e d 
 
 	 I f   E n c o d e r S p e e d     =   " l o w " 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   /   4 
 
 	 E n d I f 
 
 	 I f   E n c o d e r S p e e d   =   " h i g h " 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   *   2 
 
 	 E n d I f 
 
 	 W r i t e S l o t M i n M a x ( S l o t _ M 1 _ D e s t ) ( D i f f e r e n c e 1 ) ( S l o t _ M 1 _ M i n ) ( S l o t _ M 1 _ M a x ) 
 
 	 
 
         ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   E n c o d e r   I n n e r 
 
 	 E n c o d e r S t e p s 2   =   S l o t ( S l o t _ E n c o d e r 2 )   /   4 
 
 	 D i f f e r e n c e 2   =   E n c o d e r S t e p s 2   -   O l d E n c o d e r S t e p s 2 
 
 	 O l d E n c o d e r S t e p s 2   =   E n c o d e r S t e p s 2 
 
 	 I f   D i f f e r e n c e 2   >   3 2 0 0 0   /   4 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   -   6 5 5 3 6   /   4 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 2   <   - 3 2 0 0 0   /   4 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   +   6 5 5 3 6   /   4 
 
 	 E n d I f 
 
 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   *   1 
 
 	 I f   E n c o d e r S p e e d     =   " l o w " 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   /   4 
 
 	 E n d I f 
 
 	 I f   E n c o d e r S p e e d     =   " h i g h " 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   *   2 
 
 	 E n d I f 
 
 	 W r i t e S l o t M i n M a x ( S l o t _ M 2 _ D e s t ) ( D i f f e r e n c e 2 ) ( S l o t _ M 2 _ M i n ) ( S l o t _ M 2 _ M a x ) 
 
 	 
 
         ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   E n c o d e r   O u t e r 
 
 	 E n c o d e r S t e p s 3   =   S l o t ( S l o t _ E n c o d e r 3 )   /   4 
 
 	 D i f f e r e n c e 3   =   E n c o d e r S t e p s 3   -   O l d E n c o d e r S t e p s 3 
 
 	 O l d E n c o d e r S t e p s 3   =   E n c o d e r S t e p s 3 
 
 	 I f   D i f f e r e n c e 3   >   3 2 0 0 0   /   4 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   -   6 5 5 3 6   /   4 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 3   <   - 3 2 0 0 0   /   4 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   +   6 5 5 3 6   /   4 
 
 	 E n d I f 
 
 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   *   1 
 
 	 I f   E n c o d e r S p e e d     =   " l o w " 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   /   4 
 
 	 E n d I f 
 
 	 I f   E n c o d e r S p e e d     =   " h i g h " 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   *   2 
 
 	 E n d I f 
 
 	 W r i t e S l o t M i n M a x ( S l o t _ M 3 _ D e s t ) ( D i f f e r e n c e 3 ) ( S l o t _ M 3 _ M i n ) ( S l o t _ M 3 _ M a x ) 
 
 	 
 
 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   E n c o d e r   e n d 
 
 	 E n c o d e r S t e p s 4   =   S l o t ( S l o t _ E n c o d e r 4 )   /   4 
 
 	 D i f f e r e n c e 4   =   E n c o d e r S t e p s 4   -   O l d E n c o d e r S t e p s 4 
 
 	 O l d E n c o d e r S t e p s 4   =   E n c o d e r S t e p s 4 
 
 	 I f   D i f f e r e n c e 4   >   3 2 0 0 0   /   4 
 
 	 	 D i f f e r e n c e 4   =   D i f f e r e n c e 4   -   6 5 5 3 6   /   4 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 4   <   - 3 2 0 0 0   /   4 
 
 	 	 D i f f e r e n c e 4   =   D i f f e r e n c e 4   +   6 5 5 3 6   /   4 
 
 	 E n d I f 
 
 	 D i f f e r e n c e 4   =   D i f f e r e n c e 4   *   1 
 
 	 I f   E n c o d e r S p e e d     =   " l o w " 
 
 	 	 D i f f e r e n c e 4   =   D i f f e r e n c e 4   /   4 
 
 	 E n d I f 
 
 	 I f   E n c o d e r S p e e d     =   " h i g h " 
 
 	 	 D i f f e r e n c e 4   =   D i f f e r e n c e 4   *   2 
 
 	 E n d I f 
 
 	 W r i t e S l o t M i n M a x ( S l o t _ M 4 _ D e s t ) ( D i f f e r e n c e 4 ) ( S l o t _ M 4 _ M i n ) ( S l o t _ M 4 _ M a x ) 
 
 	 
 
 	 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 I f   D i f f e r e n c e 1   < >   0   O r   D i f f e r e n c e 2   < >   0   O r   D i f f e r e n c e 3   < >   0   O r   D i f f e r e n c e 4   < >   0 
 
 	 	 C o r r e c t S e l e c t e d P o s i t i o n 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   R e s e t E n c o d e r s 
 
 	 O l d E n c o d e r S t e p s 1   =   S l o t ( S l o t _ E n c o d e r 1 )   /   4 
 
 	 O l d E n c o d e r S t e p s 2   =   S l o t ( S l o t _ E n c o d e r 2 )   /   4 
 
 	 O l d E n c o d e r S t e p s 3   =   S l o t ( S l o t _ E n c o d e r 3 )   /   4 
 
 	 O l d E n c o d e r S t e p s 4   =   S l o t ( S l o t _ E n c o d e r 4 )   /   4 
 
 R e t u r n 
 
 
 
 L a b e l   W r i t e S l o t M i n M a x 
 
 	 V a r i a b l e   N u m e r i c   W S S l o t 
 
 	 V a r i a b l e   N u m e r i c   W S d i f f 
 
 	 V a r i a b l e   N u m e r i c   W S M i n 
 
 	 V a r i a b l e   N u m e r i c   W S M a x 
 
 	 W S d i f f   =   S l o t ( W S S l o t )   +   W S d i f f 
 
 	 I f   W S d i f f   >   W S M a x 
 
 	 	 W S d i f f   =   W S M a x 
 
 	 	 B e e p ( 5 0 0 , 1 0 ) 
 
 	 E n d I f 
 
 	 I f   W S d i f f   <   W S M i n 
 
 	 	 W S d i f f   =   W S M i n 
 
 	 	 B e e p ( 5 0 0 , 1 0 ) 
 
 	 E n d I f 
 
 	 S l o t ( W S S l o t )   =   W S d i f f 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%  %%%%  %%%%  %%%%%
 
 '   Q%    R E P E A T   O N - O F F                 Q%  %%%%  %%%    %%%%  %%%    %%%%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %  %%  %%%%  %        %%%%  %    %      %
 
 V a r i a b l e   S t r i n g   R e p e a t S t a t u s   =   " R e p e a t   O f f " 
 
 L a b e l   R e p e a t O n O f f 
 
 	 I f   R e p e a t S t a t u s   =   " R e p e a t   O f f " 
 
 	 	 R e p e a t S t a t u s   =   " R e p e a t   O n " 
 
 	 	 E n a b l e R e p e a t 
 
 	 	 T T S   S p e a k   R e p e a t S t a t u s 
 
 	 	 B u t t o n   R e p e a t O n O f f   T e x t   " R E P E A T   O N " 
 
 	 	 B u t t o n   R e p e a t O n O f f   C o l o r   F l a s h i n g 7   Y e l l o w   R e d 
 
 	 E l s e 
 
 	 	 D i s a b l e R e p e a t 
 
 	 	 R e p e a t S t a t u s   =   " R e p e a t   O f f " 
 
 	 	 T T S   S p e a k   R e p e a t S t a t u s 
 
 	 	 B u t t o n   R e p e a t O n O f f   T e x t   " R E P E A T   O F F " 
 
 	 	 B u t t o n   R e p e a t O n O f f   C o l o r   D a r k S l a t e G r a y 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 
 
 ' '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %        %        %%%%  %%%%
 
 ' '   Q%    C O L L A B O R A T I V E   O N - O F F     Q%  %        %    %  %        %        %%%%  %%%%
 
 ' '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%  %%%%  %    %  %%%%  %
 
 ' V a r i a b l e   S t r i n g   C o l l a b S t a t u s   =   " C o l l a b   O f f " 
 
 ' L a b e l   C o l l a b O n O f f 
 
 ' 	 I f   C o l l a b S t a t u s   =   " C o l l a b   O f f " 
 
 ' 	 	 C o l l a b S t a t u s   =   " C o l l a b   O n " 
 
 ' 	 	 E n a b l e C o l l a b o r a t i v e 
 
 ' 	 	 T T S   S p e a k   W a i t   C o l l a b o r a t i v e   s t a t u s   a c t i v e 
 
 ' 	 	 B u t t o n   C o l l a b O n O f f   T e x t   " C O L L A B   O N " 
 
 ' 	 	 B u t t o n   C o l l a b O n O f f   C o l o r   F l a s h i n g 7   Y e l l o w   R e d 
 
 ' 	 E l s e 
 
 ' 	 	 D i s a b l e C o l l a b o r a t i v e 
 
 ' 	 	 C o l l a b S t a t u s   =   " C o l l a b   O f f " 
 
 ' 	 	 T T S   S p e a k   W a i t   C o l l a b o r a t i v e   s t a t u s   i s   i n a c t i v e 
 
 ' 	 	 B u t t o n   C o l l a b O n O f f   T e x t   " C o l l a b   O f f " 
 
 ' 	 	 B u t t o n   C o l l a b O n O f f   C o l o r   D a r k S l a t e G r a y 
 
 ' 	 E n d I f 
 
 ' R e t u r n 
 
 ' 
 
 V a r i a b l e   S t r i n g   B u t t o n s M e a n i n g S t a t u s   =   " S h o w   O F F " 
 
 L a b e l   B u t t o n s M e a n i n g 
 
 	 I f   B u t t o n s M e a n i n g S t a t u s   =   " S h o w   O F F " 
 
 	 	 B u t t o n s M e a n i n g S t a t u s   =   " S h o w   O N " 
 
 	 	 W i n d o w   S i z a b l e 
 
 	 	 L o a d   " I m a g e s \ B u t t o n _ m e a n i n g s . j p g " 
 
 	 	 B u t t o n   B u t t o n s M e a n i n g   T e x t   " S h o w   O N " 
 
 	 E l s e 
 
 	 	 L o a d   H i d e 
 
 	 	 B u t t o n s M e a n i n g S t a t u s   =   " S h o w   O F F " 
 
 	 	 B u t t o n   B u t t o n s M e a n i n g   T e x t   " S h o w   O F F " 
 
 	 	 L o a d   H i d e 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 ' '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%  %%%%  %%%%  %%%  %%%%
 
 ' '   Q%    S   C   O   P   E   S                             Q%  %%%%  %      %    %  %%%%  %%%  %%%%
 
 ' '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%  %%%%  %        %%%  %%%%
 
 L a b e l   S t a r t S c o p e 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p S c o p e 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 R e t u r n 
 
 
 
 ' '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 ' '     P R I N T   C O O R D I N A T E S 
 
 ' '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 ' L a b e l   P r i n t V a l u e s 
 
 ' 	 ' s 1   =               " X = "   +   F o r m a t ( S l o t ( S l o t _ M 1 _ D e s t _ X ) ,   " 0 . 0 0 0 " ) 
 
 ' 	 ' s 1   =   s 1   +   "   Y = "   +   F o r m a t ( S l o t ( S l o t _ M 2 _ D e s t _ Y ) ,   " 0 . 0 0 0 " ) 
 
 ' 	 ' s 1   =   s 1   +   "   Z = "   +   F o r m a t ( S l o t ( S l o t _ M 3 _ D e s t _ Z ) ,   " 0 . 0 0 0 " ) 
 
 ' 	 ' P r i n t   C R L F   +   s 1 
 
 ' R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     r e - s e t   h o m e   p o s i t i o n .   B e f o r e   u s e ,   a l l   m o t o r   m u s t   b e   t o   1 8 0 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 ' L a b e l   R e S e t H o m e P o s i t i o n 
 
 ' 	 Z e r o F e e t e c h ( 1 ) 
 
 ' 	 Z e r o F e e t e c h ( 2 ) 
 
 ' 	 Z e r o F e e t e c h ( 3 ) 
 
 ' 	 Z e r o F e e t e c h ( 4 ) 
 
 ' R e t u r n 
 
 
 
 ' L a b e l   Z e r o F e e t e c h 
 
 ' 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   i n i t i a l i z e   m o t o r   a d d r e s s 
 
 ' 	 V a r i a b l e   N u m e r i c   Z F 1 
 
 ' 	 Z F 1   =   ( Z F 1   +   1 )   *   5 0 
 
 ' 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' 	 S l o t ( Z F 1   +   2 3 )   =   1 2 8     ' a l i g n   c u r r e n t   p o s i t i o n   t o   2 0 4 8 
 
 ' 	 W a i t   S e c o n d s   0 . 0 5 
 
 ' 	 S l o t ( Z F 1   +   2 3 )   =   1         ' r e s t o r e   n o r m a l   f u n c t i o n 
 
 ' 	 W a i t   S e c o n d s   0 . 0 5 
 
 ' 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c o p y   p o s i t i o n   t o   d e s t i n a t i o n 
 
 ' 	 ' S l o t ( Z F 1   +   1 )   =   S l o t ( Z F 1   +   2 ) 
 
 ' 	 S l o t   S l o t _ M 1 _ D e s t   =   S l o t ( S l o t _ M 1 _ P o s ) 
 
 ' 	 S l o t   S l o t _ M 2 _ D e s t   =   S l o t ( S l o t _ M 2 _ P o s ) 
 
 ' 	 S l o t   S l o t _ M 3 _ D e s t   =   S l o t ( S l o t _ M 3 _ P o s ) 
 
 ' 	 S l o t   S l o t _ M 4 _ D e s t   =   S l o t ( S l o t _ M 4 _ P o s ) 
 
 ' 
 
 ' 	 W a i t   S e c o n d s   0 . 0 5 
 
 ' 	 ' ' '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   m o v e   t o   d e s i d e r e d   p o s i t i o n 
 
 ' 	 S l o t ( Z F 1   +   1 )   =   S l o t ( Z F 1   +   2 )   +   1 0 
 
 ' 	 F o r   v 1   =   0   T o   1 0 0 0 
 
 ' 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 ' 	 	 I f   S l o t ( Z F 1   +   7 )   =   0 
 
 ' 	 	 	 E x i t 
 
 ' 	 	 E n d I f 
 
 ' 	 N e x t 
 
 ' 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   z e r o   t o   m o t o r 
 
 ' 	 S l o t ( Z F 1   +   2 3 )   =   1 2 8     ' a l i g n   c u r r e n t   p o s i t i o n   t o   2 0 4 8 
 
 ' 	 W a i t   S e c o n d s   0 . 0 5 
 
 ' 	 S l o t ( Z F 1   +   2 3 )   =   1         ' r e s t o r e   n o r m a l   f u n c t i o n 
 
 ' 	 W a i t   S e c o n d s   0 . 0 5 
 
 ' 	 ' '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c o p y   p o s i t i o n   t o   d e s t i n a t i o n 
 
 ' 	 S l o t ( Z F 1   +   1 )   =   S l o t ( Z F 1   +   2 ) 
 
 ' 	 W a i t   S e c o n d s   0 . 0 5 
 
 ' R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%%  %%%%  %  %%%%  %
 
 '   Q%  T   R   I   A   L   S                                             Q%      %      %%%%  %  %%%%  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%      %      %  %%  %  %    %  %%%
 
 
 
 
 
 ' B O O K M A R K S   8 5 0   6 7 8   3 2 4   
 
 
 
 ' E D I T E D L I N E S   2 4 2   5   2 1   1   2 4   2   2 5   3   2 8   4   2 2 7   5   2 3 0   6   2 2 9   7   2 2 8   8   - 1   9   2 3 4   1 0   
 
 
 
 ' W A T C H   C R 
 
 